﻿<%@ Page Title="" Language="C#" MasterPageFile="~/rightContent.Master" AutoEventWireup="true"   EnableEventValidation="false" 
    CodeBehind="sheetViewS.aspx.cs" Inherits="WEB.T_bill.sheetViewS" %>
   
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            color: #FFCC00;
        }
        .style2
        {
            color: #33CC33;
        }
        .style3
        {
            color: #0099FF;
            background-color: #FFFFFF;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="title" runat="server">
    委托单查询
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
    <table style="width: 100%;">
        <tr>
            <td>
                <table class="distance" width="650px">
                    <tr>
                        <td align="right">
                            时间段:
                        </td>
                        <td align="left" class="style8">
                            <asp:TextBox ID="tbTimestart" runat="server" class="Wdate" MaxLength="10"></asp:TextBox>
                            至<asp:TextBox ID="tbTimestop" runat="server" class="Wdate" MaxLength="10"></asp:TextBox>
                            <asp:DropDownList ID="ddlorder" runat="server" 
                                AutoPostBack="True" onselectedindexchanged="ddlorder_SelectedIndexChanged">
                                <asp:ListItem Value="desc">降序</asp:ListItem>
                                <asp:ListItem Value="asc">升序</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                     
                    </tr>
      
        <tr>
            <td align="right">
                <asp:DropDownList ID="ddlQuery" runat="server" Style="text-align: right" Width="101px">
                  <asp:ListItem Value="CustomerName">客户名</asp:ListItem>
                  
                   <asp:ListItem Value=" headLadingBillNo">头程提单号</asp:ListItem>
                                <asp:ListItem Value="ladingBillNO">提单号</asp:ListItem>
                                <asp:ListItem Value="goodsName">货物名称</asp:ListItem>
                                <asp:ListItem Value="shipname">船名</asp:ListItem>
                                <asp:ListItem Value="PO">订单号</asp:ListItem>
                                <asp:ListItem Value="filingNO">归档号</asp:ListItem>
                                <asp:ListItem Value="inspectionNo">报检单号</asp:ListItem>
                                <asp:ListItem Value="customsNo">报关单号</asp:ListItem>
                                <asp:ListItem Value=" a.sheetID">委托单单号</asp:ListItem>
                </asp:DropDownList>
                 </td>
                
                  <td><asp:TextBox ID="tbQuery" runat="server" Width="360px"></asp:TextBox>
                            <asp:Button ID="btnQuery" runat="server" Text="   查  询" OnClick="btnQuery_Click"
                                Style="margin-left: 8px" CssClass="Submit_Query" />
                        </td>
                         </tr>
      
        <tr>
            <td align="right" bgcolor="White" colspan="2" style="text-align: center">
                <span class="style1">黄色背景为已经录入应收</span>，<span class="style2">绿色背景为已经录入应付</span>，<span 
                    class="style3">蓝色背景为已经全部录入</span></td>
                
                         </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="gvSheetInfo" runat="server" CellPadding="4" CssClass="distance"
                    DataKeyNames="sheetID" ForeColor="Black" GridLines="Vertical" OnSelectedIndexChanging="gvSheetInfo_SelectedIndexChanging"
                    Style="text-align: center" AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE"
                    BorderStyle="None" BorderWidth="1px" Width="1200px" AllowPaging="True" 
                    onpageindexchanging="gvSheetInfo_PageIndexChanging1" onrowdatabound="gvSheetInfo_RowDataBound" 
                  >
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="sheetID" HeaderText="委托单号" />
                        <asp:BoundField DataField="PO" HeaderText="订单号" />
                        <asp:BoundField DataField="typeID" HeaderText="类型" />
                        <asp:BoundField DataField="inOut" HeaderText="进出口" />
                        <asp:BoundField DataField="CustomerName" HeaderText="客户" />
                      
                        <asp:BoundField DataField="agencyDate" HeaderText="日期" DataFormatString="{0:d}" />
                        <asp:BoundField DataField="shipName" HeaderText="船名" />
                        <asp:BoundField DataField="customsNo" HeaderText="报关单号" />
                        <asp:BoundField DataField="inspectionNo" HeaderText="报检号" />
                        <asp:BoundField DataField="ladingBillNo" HeaderText="提单号" />
                        <asp:BoundField DataField="headLadingBillNo" HeaderText="头程提单号" />
                        <asp:BoundField DataField="goodsName" HeaderText="货物名称" />
                        <asp:CommandField ShowSelectButton="True" ButtonType="Button">
                            <ControlStyle CssClass="Submit_gv" />
                        </asp:CommandField>
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" />
                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                    <RowStyle BackColor="#F7F7DE" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#FBFBF2" />
                    <SortedAscendingHeaderStyle BackColor="#848384" />
                    <SortedDescendingCellStyle BackColor="#EAEAD3" />
                    <SortedDescendingHeaderStyle BackColor="#575357" />
                  <PagerTemplate>
     <br />
     <asp:Label ID="lblPage" runat="Server" Text='<%# "第" +( ((GridView)Container.NamingContainer).PageIndex +1 ) +"页/共"+ (((GridView)Container.NamingContainer).PageCount) +"页" %>'></asp:Label>
     <asp:LinkButton ID="lbnFirst" runat="Server" Text="首页" Enabled='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>' CommandName="Page" CommandArgument="First" ></asp:LinkButton>
     <asp:LinkButton ID="lbnPrev" runat="server" Text="上一页" Enabled='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>' CommandName="Page" CommandArgument="Prev" ></asp:LinkButton>
     <asp:LinkButton ID="lbnNext" runat="Server" Text="下一页" Enabled='<%# ((GridView)Container.NamingContainer).PageIndex != (((GridView)Container.NamingContainer).PageCount - 1) %>' CommandName="Page" CommandArgument="Next" ></asp:LinkButton> 
     <asp:LinkButton ID="lbnLast" runat="Server" Text="尾页"   Enabled='<%# ((GridView)Container.NamingContainer).PageIndex != (((GridView)Container.NamingContainer).PageCount - 1) %>' CommandName="Page" CommandArgument="Last" ></asp:LinkButton> 
      到第
       <asp:TextBox ID="tbinPageNum" runat="server"></asp:TextBox>
      页 
      <asp:Button ID="Button1" CommandName="go" runat="server" Text ="go"  OnClick="Button1_Click" 
     
     />
      
       <br />
</PagerTemplate>


                </asp:GridView>
            </td>
        </tr>
    </table>
    <table width ="100%">
    <tr><td align ="center" >   <asp:Label ID ="lbj" runat ="server" Text ="" ></asp:Label></td> </tr>
    
    
    </table>
</asp:Content>
